home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1993 / Internet Info CD-ROM (Walnut Creek) (1993).iso / networking / appletalk / uab.shar / aarp.h < prev    next >
Encoding:
Text File  |  1990-07-12  |  1.9 KB  |  73 lines

  1. /*
  2.  * $Author: cck $ $Date: 88/09/14 10:19:00 $
  3.  * $Header: /src/local/mac/cap/etalk/RCS/aarp.h,v 1.2 88/09/14 10:19:00 cck Rel $
  4.  * $Revision: 1.2 $
  5. */
  6.  
  7. /*
  8.  * aarp.h Apple Address Resolution Protocol interface
  9.  *
  10.  *
  11.  * Copyright (c) 1988 by The Trustees of Columbia University 
  12.  *  in the City of New York.
  13.  *
  14.  * Permission is granted to any individual or institution to use,
  15.  * copy, or redistribute this software so long as it is not sold for
  16.  * profit, provided that this notice and the original copyright
  17.  * notices are retained.  Columbia University nor the author make no
  18.  * representations about the suitability of this software for any
  19.  * purpose.  It is provided "as is" without express or implied
  20.  * warranty.
  21.  *
  22.  *
  23.  * Edit History:
  24.  *
  25.  *  September 1988  CCKim Created
  26.  *
  27. */
  28.  
  29. /*
  30.  * intializes aarp for this interface: upto maxnode nodes for this interface 
  31. */
  32. caddr_t aarp_init( /* char *dev, int devno, int maxnode */);
  33.  
  34. /*
  35.  * returns a node address for this interface.  index specifies which
  36.  *  one (can have multiple)
  37. */
  38. int aarp_get_host_addr(/*struct ethertalkaddr *pa, int index*/);
  39.  
  40.  
  41. /*
  42.  * resolves a ethertalk node address into an ethertalk address 
  43.  * returns pointer to address in eaddr
  44.  * args: caddr_t ah, struct ethertalkaddr *pa,
  45.  *       boolean wantbr, u_char **eaddr
  46.  *
  47. */ 
  48. int aarp_resolve();
  49.  
  50. /*
  51.  * inserts the a mapping into the aarp table
  52.  *
  53.  * if flag is "true" then will override any mappings already there
  54.  *  [used by ethertalk for gleaning]
  55.  * 
  56.  * args: caddr_t ah, u_char ha[6], struct ethertalkaddr *pa, int flag
  57.  *
  58. */
  59. int aarp_insert();
  60.  
  61. /*
  62.  * acquire an ethertalk node address 
  63.  * tries to acquire the ethertalk node address specfied in node.
  64.  * calls back with the host address index: 
  65.  *     (*callback)(callback_arg, index)
  66.  *
  67.  * args: caddr_t ah, struct ethertalkaddr *node, int (*callback)(),
  68.  *       caddr_t callback_arg
  69.  *
  70. */
  71. int aarp_acquire_etalk_node();
  72.  
  73.